package BOOK_describe;

public class Bookshelves {
    private BOOK[] bookshelves;
    private int space;
    private int count;//书的数量
    public Bookshelves() {
        space = 3;
        bookshelves = new BOOK[space];
        count = 0;
    }

    public int getSpace() {
        return space;
    }

    public void setSpace(int space) {
        this.space = space;
    }

    public BOOK[] getBookshelves() {
        return bookshelves;
    }

    public void setBookshelves(BOOK book) {
        this.bookshelves[count++] = book;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getCount() {
        return count;
    }

    public void setBookshelves_space(BOOK[] bookshelves,int newspace) {
        this.bookshelves = bookshelves;
        this.space = newspace;
    }
}
